//
//  WTFRect.h
//  Courses
//
//  Created by xxx on 15/1/3.
//  Copyright (c) 2015年 wtf. All rights reserved.
//

//#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

//#define DEFAULT_WIDTH  320
//#define DEFAULT_HEIGHT 568
#define DEFAULT_WIDTH  320
#define DEFAULT_HEIGHT 480
#define DEFAULT_TABBAR_HEIGHT RevFloat(49)
#define DEFAULT_NAV_BAR_HEIGHT RevFloat(64)
#define DEFAULT_TABLE_VIEW_HEIGHT (DEFAULT_HEIGHT - DEFAULT_TABBAR_HEIGHT - DEFAULT_NAV_BAR_HEIGHT)

typedef NS_ENUM(int, WTFAutoLayoutType)
{
    WTFAutoLayoutTypeBar,
    WTFAutoLayoutTypePic,
    WTFAutoLayoutTypeText,
    WTFAutoLayoutTypeRaw
};

extern float ratio();

extern CGFloat AutoFloat(CGFloat len);

extern CGFloat RevFloat(CGFloat len);

extern CGSize AutoSizeMake(CGFloat width, CGFloat height);

extern CGRect AutoRectMake(CGFloat x, CGFloat y, CGFloat width, CGFloat height, WTFAutoLayoutType layoutType);

@interface WTFRect : NSObject

@end
